import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import '@/style/base.scss';
import KboneUI from 'kbone-ui';
import 'kbone-ui/lib/weui/weui.css';
import kboneAPI from 'kbone-api';
import { sync } from 'vuex-router-sync';
import moment from 'moment';
import i18n from 'i18n';

Vue.config.productionTip = false;
Vue.use(KboneUI);
Vue.use(kboneAPI);

moment.locale('zh-cn');
Vue.prototype.$moment = moment;
Vue.prototype.i18n = i18n;

sync(store, router);

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
});
